package com.sxfq.loansupermarket.backsystem.modular.theTest.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.sxfq.loansupermarket.backsystem.modular.theTest.entity.SearchTheTestInfo;
import com.sxfq.loansupermarket.backsystem.modular.theTest.entity.TheTestInfo;

import java.util.List;

/**
 * 考試服务
 *
 * @author py
 * @Date 2018年2月4日23:05:54
 */
public interface ITheTestService {

    /**
     * 分页获取考试数据列表
     *
     * @param page
     * @param searchTheTestInfo
     * @return
     */
    List<TheTestInfo> selectPageListByQueryGetMap(Page<TheTestInfo> page, SearchTheTestInfo searchTheTestInfo);

    void UpdateWithTheTestInfo(TheTestInfo theTestInfo) throws Exception;

    int selectSameTestNameCount(String theTestName) throws Exception;

    int insert(TheTestInfo info) throws Exception;

    int selectSameTestNameCountForUpdate(String id, String theTestName) throws Exception;

    TheTestInfo getTheTestOne(String theTestId);

    void delete(String id);

    int selectTestStatus(String theTestId, int userId);
}
